remove unneeded entries from package map