add UploadMetadata2 support