make links refer to new structure