reparation script