added resourceInfo to codegen