more appropriate error messages