 		string pathInfo=request.cgi.path_info,
 		string scriptName=request.cgi.script_name,
 		struct formScope=form,
-		struct urlScope=url 
-	) { 
+		struct urlScope=url
+	) {
 		if (get("showDebugInformation"))
 		{
 			$debugPoint("setup");

	/**
	*  @hint Adds in the format variable from the route if it exists.
	*/
	public struct function $addRouteFormat(required struct params, required struct route) {		
		local.rv = arguments.params;
		if (StructKeyExists(arguments.route, "formatVariable") && StructKeyExists(arguments.route, "format"))
		{

		}
		return local.rv;
	}

	public struct function $findMatchingRoute(
		required string path, string requestMethod=$getRequestMethod()) {

		// loop over wheels routes
		local.iEnd =ArrayLen(application.wheels.routes);;
		for (local.i = 1; local.i <= local.iEnd; local.i++) {

			local.route = application[$wheelsKey()].routes[local.i];

			// if method doesn't match, skip this route
			if (StructKeyExists(local.route, "methods")
					&& !ListFindNoCase(local.route.methods, arguments.requestMethod))
				continue;

			// make sure route has been converted to regex
			if (!StructKeyExists(local.route, "regex"))
				local.route.regex = application.wheels.mapper.patternToRegex(local.route.pattern);

			// if route matches regular expression, set it for return
			if (REFindNoCase(local.route.regex, arguments.path)
					OR (arguments.path == "" && local.route.pattern == "/")) {
				local.rv = Duplicate(application.wheels.routes[local.i]);
				break;
			}
		}

		// throw error if not route was found
		if (NOT StructKeyExists(local, "rv"))
			$throw(
					type="Wheels.RouteNotFound"
				, message="Wheels couldn't find a route that matched this request."
				, extendedInfo="Make sure there is a route setup in your 'config/routes.cfm' file that matches the '#arguments.path#' request."
			);

		return local.rv;
	}

	public string function $getPathFromRequest(required string pathInfo, required string scriptName) {

		// we want the path without the leading "/" so this is why we do some checking here
