added function for useGlobalNamespace