improve read package file