fixed scriptdir param