returning cmd list