switch to invmake and Mako templates