private void findPlugins(boolean activateAll) {
	    File[] files = fileDir.listFiles(new FilenameFilter() {
	        public boolean accept(File dir, String name) {
	            return name.toLowerCase().endsWith(".json");
	        }
	    });
	    
	    for( File f : files ) {
	    	try{
	    		Scanner s = new Scanner(f);
	    		s.useDelimiter("\\Z");
	    		Plugin p = new Gson().fromJson(s.next(), Plugin.class);
	    		boolean add = true;
	    		for( Plugin x : plugins ) {
	    			if( x.getName().equalsIgnoreCase(p.getName()) ) {
	    				add = false;
	    			}
	    		}
	    		if( add ) {
	    			plugins.add(p);
	    		}
	    		if(activateAll) {
	    			activePlugins.add(p);
	    		}
	    		p = null;
	    		s.close();
	    	} catch( Exception e ) {
	    		System.err.println("Some problem parsing json");
	    		e.printStackTrace();
	    	}
	    }
	}