updates links to paths