simplify error handler states