add stats maintenance