automatic package restore