added tracking of link multiplicity