two scripts replacing one