compatibility with newest error handler