v1 of common code snippets