adding toggle for stats collection