convert cmd to sequence, instead of string