finish routes and links