fix to hard code the agentid on upsert's