setting up CSV handling