fixed script linking