added local vs global. Moved to V1.2