initial commit of memory manager