switching to upsert to avoid dupes