update repack script