       ixs[0].object.lines.push(@placingLink.ln)
       
       @placingLink.endpoint[1] = ixs[0].object.userData
+      @placingLink.endpoint[1].links.push(@placingLink)
 
       @ve.surface.updateLink(@placingLink.ln)
       @placingLink.ifInternetToWanLink()
       @placingLink.setEndpointData()
 
-      ###
-      if @placingLink.endpoint[0] instanceof BaseElements.Router and
-        @placingLink.endpoint[1] instanceof BaseElements.Router
-          @placingLink.props.latency = 7
-      else
-        @placingLink.props.capacity = 1000
-      ###
-           
+      @ve.addie.update(@placingLink)
+
 
       @ve.container.onmousemove = null
       @ve.container.onmousedown = (eve) => @baseDown(eve)

      f.add(@props, 'capacity')
      f.add(@props, 'latency')
    
    #cyjs generates the json for this object
    cyjs: ->


      @ve.surface.elements.push(@placingLink)
      @placingLink.props.name = @ve.namemanager.getName("lnk")
      @placingLink.endpoint[0] = ixs[0].object.userData
      @placingLink.endpoint[0].links.push(@placingLink)
      ixs[0].object.lines.push(@placingLink.ln)
      @ve.container.onmousemove = (eve) => @linkingMove1(eve)
      @ve.container.onmousedown = (eve) => @linkingDown1(eve)
