rename readpkg to getenv