snippets and other tools for mpoptmpl