cookie to a day, moved middlewares