main scirpt path fix