new link change detection method and general code rework