hooking up with upsert