     }
 
     private func registerLoadSubscriptMethod() {
-        let loadSubscript: @convention(block) String -> () = { subscriptName in
+        let loadSubscript: @convention(block) (String) -> () = { subscriptName in
+            print("Load: \(subscriptName)")
             self.loadJavascriptSource("/modules\(subscriptName)")
         }
         context.setObject(unsafeBitCast(loadSubscript, AnyObject.self), forKeyedSubscript: "loadSubScript")

        
        // register methods
        registerNativeMethods()
        
        
        // set up System global for module import

        let (sourceName, directory) = getSourceMetaData(sourcePath)
        if let path = NSBundle.mainBundle().pathForResource(sourceName, ofType: "js", inDirectory: directory), script = try? NSString(contentsOfFile: path, encoding: NSUTF8StringEncoding) as String {
            context.evaluateScript(script);
        } else {
            print("Script not found: \(sourcePath)")
        }
    }
    
