add some macro and snippets