refactored CSV importer