       @props.endpoints[0].sys = @endpoint[0].props.sys
       if !@isPhysical()
         @props.endpoints[0].ifname = @ep_ifx[0]
+      if @isPhysical()
+        @props.bindings[0] = @props[@endpoint[0].props.name]
 
       @props.endpoints[1].name = @endpoint[1].props.name
       @props.endpoints[1].sys = @endpoint[1].props.sys
       if !@isPhysical()
         @props.endpoints[1].ifname = @ep_ifx[1]
+      if @isPhysical()
+        @props.bindings[1] = @props[@endpoint[1].props.name]
+
+    unpackBindings: ->
+          @props[@endpoint[0].props.name] = @props.bindings[0]
+          @props[@endpoint[1].props.name] = @props.bindings[1]
 
     ifInternetToWanLink:  ->
       @applyWanProps() if @isInternet()

    l.ep_ifx[1] = x.endpoints[1].ifname

    @setProps(l, x)
    l.setEndpointData()
    @ve.surface.elements.push(l)
    true

                                  x.position.x, x.position.y, x.position.z)
    @setProps(c, x)
    @ve.surface.elements.push(c)
    true

  loadModel: (x) =>
    m = new BaseElements.Model(@ve.surface.baseRect,
                               x.position.x, x.position.y, x.position.z)
    @setProps(m, x)
    @ve.surface.elements.push(m)
    true

  loadSax: (x) =>
    s = new BaseElements.Sax(@ve.surface.baseRect,
                               x.position.x, x.position.y, x.position.z)
    @setProps(s, x)
    @ve.surface.elements.push(s)
    true

  loadRouter: (x) =>
