added gearth functionality
Fixed merge conflict with scripts.py