optimize link resolver