restore some packages, cleanup