about to remove mmap usage.