add logging for middle stats in