rewire