updated agent register command