rebuild namespaces