incremental decoding of cmd