update prepartion script