add buffer to protocol pipe