added some cli interface