some modification on the cmd interface