added real time clock support