after more testing this morning i found that (my previous post) was not the solution. i needed to escape the first backslash of the \n.. so replacing \n with \\n did the trick.
the guy who wrote the framework is on vacation and i don't feel like an in-depth investigation right now
