implemented basic linking