first finished version of importer