v1.1 - added log functionality