handle cmd list