catch empty cmd