tweak protocol to match textbuf