simplify logging; add 'reset' command