move mmap package to common