improve link script