repair scripts