             return buffer
         })
         let sourceCount = info["sources"] as? Int ?? 1
-        guard let kernel = context.device.newDefaultLibrary()!.makeFunction(name: name) else {
-            print("### VSScript:makeNode failed to create kernel", name)
+        guard let kernel = context.device.newDefaultLibrary()!.makeFunction(name: nodeName) else {
+            print("### VSScript:makeNode failed to create kernel", nodeName)
             return nil
         }
         do {
             let pipelineState = try context.device.makeComputePipelineState(function: kernel)
             return VSFilter(pipelineState: pipelineState, buffers: buffers, sourceCount:sourceCount)
         } catch {
-            print("### VSScript:makeNode failed to create pipeline state", name)
+            print("### VSScript:makeNode failed to create pipeline state", nodeName)
         }
         return nil
     }

        var nodes = [VSNode]()
        for item in self.pipeline {
            if let name=item["name"] as? String {
                if let node = VSScript.makeNode(name: name, params: item["attr"] as? [String:Any], context:context) {
                    nodes.append(node)
                }
            }

        return nil
    }
    
    private static func makeNode(nodeName:String, params paramsIn:[String:Any]?, context:VSContext) -> VSNode? {
        guard let info = VSScript.getNodeInfo(name: nodeName) else {
            print("### VSScript:makeNode Invalid node name", nodeName)
            return nil
        }
        var params = [String:Any]()
