duplex stream succesfully writing to log file via telnet