fix up restoration of saved state from disk, still incomplete
save and restore the selected engine state at startup