switch to command mode, add logout