made import script more DRY