make error handler work again