implemented CSV download for TS