scripting almost there!! (local vs global)