add support for connect_timeout