add timecounter support