make kotti import script more defensive