added log generating script