added stats to locality, fixing #212
add entity stats json