improved link script