fix: init the time object
handle errors