cleaning up data links etc