add cmd structure