changed "total" xpath in getstats