add schemaV2 support for pubishing profile