added functionality to test repairs