refract
add timeutil funtion
update from server