add logging to output errors to stdout