make the error messages more useful