fix GetCommand, add ListCommands