rtc fixes