added log option to mopi