add raw flow decoding