updated package file parsing