switch to using pl_get{Packages,Groups}