pull out all timeout functions