bugfix sub sub modules
refactor route generation

Routing tables are generated at setup time