document memory manager