handle orphaned pkgs (fixes #12)