removed error_handler(), handler() now does both handlers and error handlers