added some linking fuctionality (see inclusion) completley untested probably buggy