fix error messages to be shorter