pull over mmap wrapper from old project