add a version variable in protocol header