got initial stats module working with limited functionality