support protocol v3 (except binary)