minor fixes to import script