updated package file reading