use bytestream reader instead of bitstream for THP