adding pipe to log to screen and file