added more bits of the router. still not complete