update links sections and ks_distro variable