now handles error messages