log scripts working