add mutex for memory map