add stats and index commands