externalize snippets