pipe stdout and stderror to logfile. seems to be valuable in the case of errors