added parsing csv functionality