fixing script running