fix a bunch of links