Add extensions map for middleware