fix timeout checks