add version variable to protocol header