 	}
 
 	@objc(MediaStream_init:) func MediaStream_init(_ command: CDVInvokedUrlCommand) {
-		
+		NSLog("iosrtcPlugin#MediaStream_init()")
+
 		let streamId = command.argument(at: 0) as! String
-		
+
 		if self.pluginMediaStreams[streamId] == nil {
 			let rtcMediaStream : RTCMediaStream = self.rtcPeerConnectionFactory.mediaStream(withStreamId: streamId)
 			let pluginMediaStream = PluginMediaStream(rtcMediaStream: rtcMediaStream)
 			pluginMediaStream.run()
-		
+
 			self.saveMediaStream(pluginMediaStream)
+		} else {
+			NSLog("iosrtcPlugin#MediaStream_init() | ERROR: pluginMediaStream with id=%@ already exist", String(streamId))
 		}
 	}
 


	@objc(MediaStreamRenderer_save:) func MediaStreamRenderer_save(_ command: CDVInvokedUrlCommand) {
		NSLog("iosrtcPlugin#MediaStreamRenderer_save()")
		
		let id = command.argument(at: 0) as! Int
		let pluginMediaStreamRenderer = self.pluginMediaStreamRenderers[id]
		
		if pluginMediaStreamRenderer == nil {
			NSLog("iosrtcPlugin#MediaStreamRenderer_save() | ERROR: pluginMediaStreamRenderer with id=%@ does not exist", String(id))
			return;
		}
		
		let based64 = pluginMediaStreamRenderer!.save()
		self.emit(command.callbackId,
			  result: CDVPluginResult(

					status = false
				}
			}

			if (status) {
				self.emit(command.callbackId,result: CDVPluginResult(status: CDVCommandStatus_OK))
			} else {
