add buffer for protocol