global timeout patch