refactor MemoryMapper
format MemoryMapper