update link ref's