basics in place for PackedInputStream