auto-register agents with server