adding stats json interface