moved the routing inside each module