refactoring out GlobalVars entirely, using proper namespacing