kill duplicate mmap code