improve link callback delay calculations, add anonymous function resolution by default