csv file support, bugfix