added generate script