data exporter code