template first
fix agent config