add support for download to csv