cleanup of error messages