improved design of error messages