             } else if plugin == "VideoPlayer" {
                 videoPlayerPlugin(method: method, handler: handler, parameters: parameters)
             } else {
-                print("Unknown plugin \(plugin).\(method)")
-                // Should I try to respond to this?
+                let error = logError(plugin: plugin, method: method, message: "Unknown plugin")
+                let response = format(handler: handler, result: error)
+                controller.jsCallback(response: response)
             }
         } else {
             print("Message set to callNative, must be a dictionary")

                let s3Key = parameters[1] as? String ?? "notString"
                let filePath = parameters[2] as? String ?? "notString"
                // do call here
                let error = "whatever"
                let response = format(handler: handler, result: error)
                controller.jsCallback(response: response)
            } else {
                let response = format(handler: handler, result: "downloadZipFile must have three parameters")
                controller.jsCallback(response: response)
            }

        } else {
            print("Unknown method \(method) in Plugin AWS")
        }
    }
    
    private func audioPlayerPlugin(method: String, handler: String, parameters: [Any]) {
        
        if method == "findAudioVersion" {
            if parameters.count == 2 {

    private func format(handler: String, error: String?, result: Int) -> String {
        return handler + "(" + String(result) + ");"
    }
    private func format(handler: String, error: String?, result: [Dictionary<String, Any?>]) -> String {
        do {
            let message = try JSONSerialization.data(withJSONObject: result)
                                                 //options: JSONSerialization.WritingOptions.prettyPrinted)
            //return handler + "('" + String(data: message, encoding: String.Encoding.utf8)! + "');"
            return format(handler: handler, result: String(data: message, encoding: String.Encoding.utf8)!)
        } catch let jsonError {
            let error = logError(plugin: "Sqlite", method: "queryJS", message: jsonError.localizedDescription)
            return format(handler: handler, result: error)
        }
    }
    private func logError(plugin: String, method: String, message: String) -> String {
        let error = "PLUGIN ERROR: \(plugin).\(method):  \(message)"
        print(error)
        return error
    }
}
