construct ts stream