fixed switcheroo in cli mode check condition.