rename .foo to global.foo