add new mode
update snippets