added the health check to the middleware, so you do not need to add it manually