added RTC support