 	$include(template="config/#application.$wheels.environment#/settings.cfm");
 
 	// clear query (cfquery) and page (cfcache) caches
-	if (application.$wheels.clearQueryCacheOnReload or !StructKeyExists(application.$wheels, "cachekey"))
-	{
+	if (application.$wheels.clearQueryCacheOnReload or !StructKeyExists(application.$wheels, "cachekey")) {
 		application.$wheels.cachekey = Hash(CreateUUID());
 	}
-	if (application.$wheels.clearTemplateCacheOnReload)
-	{
+	if (application.$wheels.clearTemplateCacheOnReload) {
 		$cache(action="flush");
 	}
 

	application.$wheels.excludeFromErrorEmail = "";
	application.$wheels.errorEmailToAddress = "";
	application.$wheels.errorEmailFromAddress = "";
	if (Find(".", request.cgi.server_name))
	{
		application.$wheels.errorEmailAddress = "webmaster@" & Reverse(ListGetAt(Reverse(request.cgi.server_name), 2,".")) & "." & Reverse(ListGetAt(Reverse(request.cgi.server_name), 1, "."));
	}
	else
	{
		application.$wheels.errorEmailAddress = "";
	}
	if (application.$wheels.environment == "production")
	{
		application.$wheels.showErrorInformation = false;
		application.$wheels.sendEmailOnError = true;
	}
	if (application.$wheels.environment != "design" && application.$wheels.environment != "development")
	{
		application.$wheels.showDebugInformation = false;
	}


	application.$wheels.wheelsComponentPath = ListAppend(application.$wheels.rootcomponentPath, "wheels", ".");

	// set environment either from the url or the developer's environment.cfm file
	if (StructKeyExists(URL, "reload") && !IsBoolean(URL.reload) && Len(url.reload) && StructKeyExists(application.$wheels, "reloadPassword") && (!Len(application.$wheels.reloadPassword) || (StructKeyExists(URL, "password") && URL.password == application.$wheels.reloadPassword))) {
		application.$wheels.environment = URL.reload;
	} else {
		$include(template="config/environment.cfm");
	}

	// rewrite settings based on web server rewrite capabilites
	application.$wheels.rewriteFile = "rewrite.cfm";
	if (Right(request.cgi.script_name, 12) == "/" & application.$wheels.rewriteFile) {
		application.$wheels.URLRewriting = "On";
	} else if (Len(request.cgi.path_info)) {
		application.$wheels.URLRewriting = "Partial";
	} else {
		application.$wheels.URLRewriting = "Off";
	}

	// set datasource name to same as the folder the app resides in unless the developer has set it with the global setting already
	if (StructKeyExists(this, "dataSource")) {
		application.$wheels.dataSourceName = this.dataSource;
	} else {
		application.$wheels.dataSourceName = LCase(ListLast(GetDirectoryFromPath(GetBaseTemplatePath()), Right(GetDirectoryFromPath(GetBaseTemplatePath()), 1)));
	}
	application.$wheels.dataSourceUserName = "";
