piping into a file now works if there is more than one command.