roll my own csv parser
first working function