linkname logic