mmap updates
lots of changes