add getCmdName for cmd class