added visual error messages