public static function get($key, $default = "default") {
		if(self::$config == array())
			self::load();

		$env = Kernel::getEnvironment();
		$position = self::$config[$env];
		$token = strtok($key, '.');
		while($token !== false) {
			$nextToken = strtok('.');
			if(!isset($position[$token]))
				return $default;

			if($nextToken === false)
				return $position[$token];

			$position = &$position[$token];
			$token = $nextToken;
		}

		return $default;
	}