keep some stats for debugging