created a base request handler