adding in changes for agent mode config