 				catch{
 					
 				}
-				self.shellCommand("/usr/bin/hdiutil",arg: ["attach","/Volumes/"+esdpath+"/"+apppath+"/Contents/SharedSupport/InstallESD.dmg","-noverify","-nobrowse","-quiet"], label: "#MOUNTESD#", progress: 2)
+				self.shellCommand("/usr/bin/hdiutil",arg: ["attach","/Volumes/\(esdpath)/\(apppath)/Contents/SharedSupport/InstallESD.dmg","-noverify","-nobrowse","-quiet"], label: "#MOUNTESD#", progress: 2)
 			}
 			do{
 				let enumerator = try fileManager.contentsOfDirectoryAtPath("/Volumes")
 				for element in enumerator {
 					if element.hasPrefix("OS X Install ESD"){
 						esdpath = element
-						if NSURL(fileURLWithPath:"/Volumes/"+esdpath+"/BaseSystem.dmg").checkResourceIsReachableAndReturnError(nil){
+						if NSURL(fileURLWithPath:"/Volumes/\(esdpath)/BaseSystem.dmg").checkResourceIsReachableAndReturnError(nil){
 							break
 						}
 					}

			}
			if esdpath != "" {
				do{
					let enumerator = try fileManager.contentsOfDirectoryAtPath("/Volumes/"+esdpath)
					for element in enumerator {
						if element.hasPrefix("Install OS "){
							apppath = element
							if NSURL(fileURLWithPath:"/Volumes/"+esdpath+"/"+apppath+"/Contents/SharedSupport/InstallESD.dmg").checkResourceIsReachableAndReturnError(nil){
								break
							}
						}

		dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,0),{
			////////////////////////////mounting processes////////////////////////
			self.shellCommand("/usr/bin/hdiutil",arg: ["attach",filePath,"-noverify","-nobrowse","-quiet"], label: "#MOUNTORG#", progress: 2)
			self.shellCommand("/usr/bin/hdiutil",arg: ["attach","\(filePath)/Contents/SharedSupport/InstallESD.dmg","-noverify","-nobrowse","-quiet"], label: "#MOUNTESD#", progress: 2)
			let fileManager = NSFileManager.defaultManager()
			var esdpath = "",apppath = ""
			do{
