updated agent to have name and tags