okay the middleware actually works now.