refactor GIS import script