add format checking to the import script