retry connections three times before failing

weird casing on incoming variable