customized alerts and error messages