make streaming slightly more resiliant