update and parse statistics