 					name:   @name
 					clientid: @clientid
 					build: @s.bversion
-				if not @initialized
+				if @initFromLocalStorage
+					opts.cmd = "cv:#{@data.last_cv}"
+				else if not @initialized
 					opts.cmd = index_query
+				console.error opts,  @initFromLocalStorage
+				@initFromLocalStorage = 0
 				@send("init:#{JSON.stringify(opts)}")
 				console.log "#{@name}: sent init #{JSON.stringify(opts)} waiting for auth"
 			else

	# diff: the newly received incoming diff (orig_object + diff = new_object)
	_notify_client: (key, new_object, orig_object, diff, version) =>
		console.log "#{@name}: _notify_client(#{key}, #{new_object}, #{orig_object}, #{JSON.stringify(diff)})"
		if not @cb_l?
			console.log "#{@name}: no get callback, notifying without transform"
			@cb_n key, new_object, version
			return

	start: =>
		console.log "#{@space}: started initialized: #{@initialized} authorized: #{@authorized}"
		@namespace = "#{@username}:#{@space}"

		if @loaded
			@initFromLocalStorage = @loaded

		console.error @initFromLocalStorage

		if @loaded
			console.error "LOADED", @loaded
			for own id, entity of @data.store
				@_notify_client id, entity.object, entity.version
			@loaded = 0

		console.error @initFromLocalStorage
		@started = true
		@first = false
		if not @authorized
