switched to swig templating system