collected snippets in studying different tools.