pinning encoding protocol to version 2.