added more user friendly error messages