remove dependency on the flask.request object