pretty naive connection retries