rationalize some error messages