acually fixes middleware. I hate the world