fixed the csv exporter so that I can output other things to the browser and it not scream at me