codeblock gen script