fixed bug re: escapes in output