changing to binary protocol