switched stream injection for textwriter injection. replaced log.info for output.writeline where prudent