first attempt at upsert underwriting