added mmap code