Index: trunk/src/lib/graphics/effects/fog_effect.cc
===================================================================
--- trunk/src/lib/graphics/effects/fog_effect.cc	(revision 6979)
+++ trunk/src/lib/graphics/effects/fog_effect.cc	(revision 6980)
@@ -37,5 +37,4 @@
  FogEffect::FogEffect(const TiXmlElement* root)
 {
-  PRINTF(0)("Fog Effect Created\n");
   this->setClassID(CL_FOG_EFFECT, "FogEffect");
 
@@ -44,5 +43,4 @@
   this->fogStart = 10.0f;
   this->fogEnd = 1000.0f;
-
 
   if (root != NULL)
@@ -55,5 +53,7 @@
  */
 FogEffect::~FogEffect()
-{}
+{
+  this->deactivate();
+}
 
 
@@ -63,16 +63,15 @@
 void FogEffect::loadParams(const TiXmlElement* root)
 {
-  PRINTF(0)(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.loadParms\n\n");
-
   GraphicsEffect::loadParams(root);
 
-   LoadParam(root, "fog-mode", this, FogEffect, setFogMode)
-       .describe("sets the the fog mode {GL_LINEAR, GL_EXP, GL_EXP2}");
 
-   LoadParam(root, "fog-density", this, FogEffect, setFogDensity)
-       .describe("sets the the fog density of the exponentionl functions");
+  LoadParam(root, "fog-mode", this, FogEffect, setFogMode)
+      .describe("sets the the fog mode {GL_LINEAR, GL_EXP, GL_EXP2}");
 
-   LoadParam(root, "fog-range", this, FogEffect, setFogRange)
-       .describe("sets the the range of the linear functions");
+  LoadParam(root, "fog-density", this, FogEffect, setFogDensity)
+      .describe("sets the the fog density of the exponentionl functions");
+
+  LoadParam(root, "fog-range", this, FogEffect, setFogRange)
+      .describe("sets the the range of the linear functions");
 }
 
@@ -90,5 +89,4 @@
 bool FogEffect::activate()
 {
-  printf("fog==============================================>>>>>>>>>>>>>>>>>>>>>>>>...\n\n");
   PRINTF(4)( "Enabling Fog Effect, mode: %i, density: %f, start: %f, end: %f\n", this->fogMode, this->fogDensity,
              this->fogStart, this->fogEnd);
Index: trunk/src/lib/graphics/effects/lense_flare.cc
===================================================================
--- trunk/src/lib/graphics/effects/lense_flare.cc	(revision 6979)
+++ trunk/src/lib/graphics/effects/lense_flare.cc	(revision 6980)
@@ -46,6 +46,5 @@
  LenseFlare::LenseFlare(const TiXmlElement* root)
 {
-  if (root != NULL)
-    this->loadParams(root);
+  this->setClassID(CL_LENSE_FLARE, "LenseFlare");
 
   this->flareMatrix = new float[14];
@@ -60,4 +59,11 @@
 
   this->lightSource = (LightManager::getInstance())->getLight(0);
+  PRINTF(0)("light is: %p\n", this->lightSource);
+
+  if (root != NULL)
+  {
+    this->loadParams(root);
+    this->activate();
+  }
 }
 
@@ -81,8 +87,11 @@
   GraphicsEffect::loadParams(root);
 
-    LoadParam(root, "add-flare-texture", this, LenseFlare, addFlare)
+  LOAD_PARAM_START_CYCLE(root, element);
+  {
+    LoadParam_CYCLE(element, "add-flare-texture", this, LenseFlare, addFlare)
         .describe("adds a lensflare texture to the engine");
-}
-
+  }
+  LOAD_PARAM_END_CYCLE(element);
+}
 
 /**
@@ -151,4 +160,5 @@
     bb->setVisibility(true);
   }
+  PRINTF(0)("Finished adding\n", textureName);
 }
 
Index: trunk/src/lib/graphics/graphics_engine.cc
===================================================================
--- trunk/src/lib/graphics/graphics_engine.cc	(revision 6979)
+++ trunk/src/lib/graphics/graphics_engine.cc	(revision 6980)
@@ -133,4 +133,21 @@
   .describe("loads a graphics effect");
 }
+
+
+
+
+/**
+ * @param root The XML-element to load GraphicsEffects from
+ */
+void GraphicsEngine::loadGraphicsEffects(const TiXmlElement* root)
+{
+  LOAD_PARAM_START_CYCLE(root, element);
+  {
+    PRINTF(0)("element is: %s\n", element->Value());
+    Factory::fabricate(element);
+  }
+  LOAD_PARAM_END_CYCLE(element);
+}
+
 
 
@@ -711,16 +728,2 @@
   }
 }
-
-
-/**
- * @param root The XML-element to load GraphicsEffects from
- */
-void GraphicsEngine::loadGraphicsEffects(const TiXmlElement* root)
-{
-  LOAD_PARAM_START_CYCLE(root, element);
-  {
-    PRINTF(0)("element is: %s\n", element->Value());
-    Factory::fabricate(element);
-  }
-  LOAD_PARAM_END_CYCLE(element);
-}
