 				for element in enumerator {
 					if element.hasPrefix("OS X Base System"){
 						basepath = element
-						if NSURL(fileURLWithPath:"/Volumes/"+basepath).checkResourceIsReachableAndReturnError(nil){
+						if NSURL(fileURLWithPath:"/Volumes/\(basepath)").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
							}
						}

				self.delegate.didReceiveErrorMessage("#BASEFAILURE#")
			}
			////////////////////////////copying processes/////////////////////////
			self.privilegedShellCommand("/usr/sbin/asr",arg: ["restore","--source","/Volumes/\(basepath)/","--target",lazypath,"--erase","--format","HFS+","--noprompt","--noverify"], label: "#COPYBASE#",progress: 15)
			do{
				let enumerator = try fileManager.contentsOfDirectoryAtPath("/Volumes")
				for element in enumerator {
					if element.hasPrefix("OS X Base System"){
						basepath = element
						if NSURL(fileURLWithPath:"/Volumes/\(basepath)").checkResourceIsReachableAndReturnError(nil){
							self.shellCommand("/usr/bin/hdiutil",arg: ["detach","/Volumes/\(basepath)"], label: "", progress: 0)
						}
					}
				}
