set last known mode