adding enabled flag to agent configuration