more snippets and doc