enhanced exc rights fixing script