move timeouts to config