more sophisticated error message