A number of bugfixes and improvements mostly reconnect and sync.