lots of debuggy, but seems to be actually establishing a link