refactoring imort_csv script to work with the new csv format