add stats_handler to index