make snippets work
fix templates