fixed script linkings