use agent->name everywhere