added ability to reset junctions