started refactoring geocoding script