expose req, res, and next for file state hooks