stats: split as two modules