curl fixes
upsert response fix