updated methods to read package files