cleanup generate script