translate account/* and lend/* to swig tpl