had to do this, otherwise stderr will be output to the log file