add main to agentsubcoordinator