updated server to accept agent name and tags