added connection exception to use second server if needed.