export is encrypted depending on runmode