moved partition offset entry to the file entry phase rather than in each sub-script