change interactive viewer executable into commandline exporter