added log and reset commands