fix pathod main script