snippets and extensions