init the MemLoop as HaLoop