initial parsing of csv