added support for reading package files. So far def is read from package file but not much more.