     }).then (id) -> throw "unable to create junction" unless id?
 
   createJunctions: (classes) ->
-#    promise.allOrNone (@createJunction cls for cls in classes)
-    console.error @containerId
-    junctions = []
-    for cls in classes
-      junctions.push @createJunction cls
-    promise.allOrNone junctions
+    promise.allOrNone (@createJunction cls for cls in classes)
 
   validateContainer: ->
     @conn.tooling.deploy @containerId, yes

    that = @
    @getClasses (classes) ->
      that.createContainer()
        .then(-> console.error that.containerId; that.createJunctions classes)
        .then(-> that.validateContainer())
        .then(-> that.queryContainer())
        .then (symbolTables) ->


  setContainerId: (id) ->
    throw "unable to create!" unless id?
    @containerId = id

  createJunction: (cls) ->
    @conn.tooling.insert('ApexClassMember', {
      'MetadataContainerId': @containerId
      'ContentEntityId': cls.Id
