cleaned up the dependency request bit to include a response object and a request handler