adding stats for debug mode