draft of cmd register and cmd text parsing framework