use selector fields in upsert