add stats_per_day, add tests