tweak of link-related functions