fix console output error reporting