reading from packed files with new header format