impement error warning and info messages