added a simple csv exporter