repair script