cleaning up error output