CMD: add cmd thread