add stats support.