add some XXX comments for future work
rough draft of codegen template