made import_data more flexible