use patched version of martini, update template to handle properly