new script and generator