refactors importer