some fixes, rtc