minor fixes for log scripts