adding .csv download support