rewires