make connections more resilient