create csv in tmpfile