adds the csv parsing function