subdir support for codegen