add stats logging if class available