fix script linking