fix up error messages