[WIP] Improve rexi stream protocols