make general purpose cell exporter more robust and flexible