generator script