added log write