(#497) adding global utiitly function
(#494) taking globals out of spatial
Merge pull request #496 from calvinmetcalf/494-fix-spatial-globals

494 fix spatial globals