node mmap implementation