optimize resolveLink
make getLinks reusable