added RTC plug initial code to controller