add snippets, fixes mapping for diff