added "clear completed" command and counters