script generation