format: switch link_local with global var