a
modified error handler