fixed connection retry
tweaks to the heartbeat, version changed