-added missing init error stream before error msg
-initStream function not anymore static
-init error stream
-updated todo