some small patches

some variable initialization issues and moved the logging further up so the subsystems can log things earlier. Its actually logging into void by default as the logfile was not created yet.