adding a newline replacer that runs as a post-processing event