new constructor for the router