added code for add cmd