separate CSV load functions into library