generate script updated