updating agent configuration