rtc: change to new flag variable