added ability to repair nodes