update generation script