fully automatic stats generation