now the csv export is working as well