move of clock check to global for proper tracking ondial change.