eventually, Y should not be in this middleware, only a handle to the dispatcher itself.