fixing script permissions