more refinement in parseTsStream class