 
     for x in xs
       if x.shp?
-      x.props.position = x.shp.obj3d.position
-      ido = { OID: x.id, Type: x.constructor.name, Element: x.props }
-      msg.Elements.push(ido)
+        x.props.position = x.shp.obj3d.position
+        ido = { OID: x.id, Type: x.constructor.name, Element: x.props }
+        msg.Elements.push(ido)
 
       if x.links?
         updateLink(l) for l in x.links

    ido = { OID: x.id, Type: x.constructor.name, Element: x.props }
    msg.Elements.push(ido)

    console.log(msg)

    $.post "/addie/"+dsg+"/design/update", JSON.stringify(msg), (data) =>
      x.id.name = x.props.name
      x.id.sys = x.props.sys

      #object
      @props = {
        name: "router0",
        sys: "root",
        capacity: 100,
        latency: 0
      }
      @id = {
        name: "router0"
        sys: "root"
        design: dsg
      }

