add MemoryDebug and other utils