wip: script generation