csv import with better logging