initial commit of rtc integration, needs more testing