namespaceIdx added in settings so that it would be available in before/after callbacks by this.namespaceIdx