refine kernel codec, remove unused stream