add mmap snippets