update binary protocol