fixing script dependency issues