change send module to mmap