clean-up error messages