public Searcher2(AIBatWindow w) {
	window = w;
	folderNames = new ArrayList<String>();
	try {
	    sm = new SettingsManager();
	    songFolderLoc = new SettingsManager().getSongFolderLoc();
	}
	catch (Exception e) {
	    Util.errorSettings();
	    Util.errorException(e);
	    return;
	}
	if (songFolderLoc.length() == 0) {
	    // if song folder not selected, ask to do so.
	    if (!promptForSongsFolder())
		return;
	}
	File songFolder = new File(songFolderLoc);
	if (!songFolder.exists()) {
	    Util.errorMessage(
		    "osu! Songs folder not found, try selecting it again.",
		    window);
	    return;
	}
	for (File file : new File(songFolderLoc).listFiles()) {
	    if (file.isDirectory())
		folderNames.add(file.getAbsolutePath());
	}
	Collections.sort(folderNames);
    }