add SSL support back in
refactor retry loop. add min/max update ping times