remove orphaned packages. Add new packages