functional csv download