ion: implement ION memory manager