add 'unindexed' pkgs helper; clean up debug printing