add linking functionality