added log message batching