timezone and loop fix