added first and last path to a router