cleaning up repair scripts