add console.log and function snippets