packageselector: various bugfixes