Use a better way to reload namespaces