default to v2 in infer_version.