ods exporter (this code needs to be rewritten)