bug fix - creating csv instead