alx: add stats update function