add stats class and session skeleton