added log writer fix