make cur_time etc global