update archive script