fixed link-add functionality -- now works