New config system updated

also added log helper