moving timer to util