update build and repack script