added log rotation