reset packages before update