finish the routing class