added export of CSV
cleanup