fixed issue with errors not showing in output