implementing loading from csv