bug in getCmd...