changes for new InputPacketStream and CTAPacket for decodeType