add cmd support