fixed static link following and function level