updates the generate script