updated error handlers class