user middleware, coffee fixes