adding parsing csv files. refatoring