add memory manager