restore some packages
remove duplicates