for speed reason: ts.c do not report stream error, tsana.c report these errors with '-err'