intergrated the routing and the main server