Change namespace for middleware