working out the routing and bootstrapping structure