rename all 'global' to 'shared'