add version to protocol