new memory manager and build ramparts