adding commandMode