added script generation