emit text instrs, not work yet
add closure struct