simplified middleware, got running