mostly finished importer. duplicate check not working