tested codegen script, had to tweek some created directoriess, but now works