fixes for snippets