stable multithread collision/links

tested in many situation. Give stable but different results than the latest version.