public static function loadRules() {
		
		// default var
		$configDir = Config::getOption("configDir");
		
		// make sure the pattern engine data exists
		if (file_exists($configDir."/patternengines.json")) {
			
			// get pattern engine list data
			$patternEngineList = json_decode(file_get_contents($configDir."/patternengines.json"), true);
			
			// get the pattern engine info
			foreach ($patternEngineList["patternengines"] as $patternEngineName) {
				
				self::$rules[] = new $patternEngineName();
				
			}
			
		} else {
			Console::writeError("The pattern engines list isn't available in <path>".$configDir."</path>...");
		}
		
	}