improve generate script output