c93: convert to bytestream2 API