request handler hooks