minor changes on link addlink