added log option to stdout