change threading timeout management