update MemHeader to hold the flags