         if not @clientid? or @clientid.indexOf("sjs") != 0
             @clientid = "sjs-#{@s.bversion}-#{@uuid(5)}"
             try
-                localStorage.setItem "#{@namespace}/clientid"
+                localStorage.setItem "#{@namespace}/clientid", @clientid
             catch error
                 console.log "#{@name}: couldnt set clientid"
 

        if not @s.supports_html5_storage()
            return
        total = 0
        for own key, datastr of localStorage
            console.log "[#{key}]: #{datastr}"
            total = total + 1
        console.log "#{total} total"

        key = "#{@namespace}/e/#{id}"
        store_data = @data.store[id]
        datastr = JSON.stringify(store_data)
        console.log "LSTORE:", key, datastr
        try
            localStorage.setItem key, datastr
        catch error
            return false
        ret_data = JSON.parse localStorage.getItem key
        if @jd.equals store_data, ret_data
            console.log "saved #{key} len: #{datastr.length}"
            return true
        else
            console.log "ERROR STORING ENTITY: store: #{JSON.stringify(store_data)}, retrieve: #{JSON.stringify(ret_data)}"
            return false

    _remove_entity: (id) =>
