better codegen tools dir structure