public static function raise($type, $message, $jname = '') {
		if (is_array($message)) {
			foreach ($message as $msgtype => $msg) {
				//if still an array implode for nicer display
				if (is_numeric($msgtype)) {
					$msgtype = $jname;
				}
				static::raise($type, $msg, $msgtype);
			}
		} else {
			$app = Application::getInstance();
			if ($message instanceof Exception) {
				$message = $message->getMessage();
			}
			if (!empty($jname)) {
				$message = $jname . ': ' . $message;
			}
			$app->enqueueMessage($message, strtolower($type));
		}
	}