improved read repair.
Merge branch 'test' into dev