use config for timeout