codegen.sh runnable from root + output path