enhancing error messages