update generate script