initial revision - added log rotation