fixes to getpackages