pass requested key to middlewares