made timeouts configurable