update before reinstall