add id / name to snippets