clean up error messages