changes to linking and copy