timeout functions and shock