fixed links for w3 (likely had bugs in my script at this point, which is why external links were being modified as well