fixes to AgentSettings