fine tune Issue 5: Support stats command