link cleanup