use swig template engine
fix swig cache option bug
up