started fleshing out the request handler