adapt stats parsing to new json