update agent settings