add check for protobuf version