improve resource update logic
fix unzip file bug