revise namespaces to work like globals, i.e. it starts from the global table