add a memory allocator