loki_middleware
