script repair