compacting some router code (bind_links)