support duration for timeout