move agent to main