added :global method and tests