forcing cast to integer for timeout