fn execute_export_state(cmd: ExportState) -> Result<(), String>