timeout detection works