added stats to locality, fixing #212