adding generate script