setting up a request object