 		// only save the old flash if they want to keep anything
 		if (StructKeyExists(request.wheels, "flashKeep"))
 		{
-			loc.flash = $readFlash();
+			loc.$flash = $readFlash();
 		}
 		
 		// clear the current flash
 		flashClear();
 		
 		// see if they wanted to keep anything
-		if (StructKeyExists(loc, "flash"))
+		if (StructKeyExists(loc, "$flash"))
 		{
 			// delete any keys they don't want to keep
 			if (Len(request.wheels.flashKeep))
 			{
-				for (loc.key in loc.flash)
+				for (loc.key in loc.$flash)
 				{
 					if (!ListFindNoCase(request.wheels.flashKeep, loc.key))
 					{
-						StructDelete(loc.flash, loc.key);
+						StructDelete(loc.$flash, loc.key, false);
 					}
 				}
 			}
 			
 			// write to the flash
-			$writeFlash(loc.flash);
+			$writeFlash(loc.$flash);
 		}
 	</cfscript>
 </cffunction>
 
 <cffunction name="$setFlashStorage" returntype="void" access="public" output="false">
 	<cfargument name="storage" type="string" required="true">
-	<cfscript>
-		variables.$class.flashStorage = arguments.storage;
-	</cfscript>
+	<cfset variables.$class.flashStorage = arguments.storage>
 </cffunction>
 
 <cffunction name="$getFlashStorage" returntype="string" access="public" output="false">
-	<cfscript>
-		var loc = {};
-		loc.rv = variables.$class.flashStorage;
-	</cfscript>
-	<cfreturn loc.rv>
+	<cfreturn variables.$class.flashStorage>
 </cffunction>
			loc.attributes = {class=loc.class};
			if (!StructKeyExists(arguments, "key") || arguments.key == loc.item)
			{
				loc.content = loc.flash[loc.item];
				if (IsSimpleValue(loc.content))
				{
					loc.listItems &= $element(name="p", content=loc.content, attributes=loc.attributes);

	'
	categories="controller-request,flash" chapters="using-the-flash" functions="flash,flashClear,flashCount,flashDelete,flashInsert,flashIsEmpty,flashKeep,flashMessages">
	<cfargument name="key" type="string" required="true" hint="The key to check if it exists.">
	<cfset var $flash = $readFlash()>
	<cfreturn StructKeyExists($flash, arguments.key)>
</cffunction>

<cffunction name="flashMessages" returntype="string" access="public" output="false" hint="Displays a marked-up listing of messages that exists in the Flash."
