logfile now will open in append mode, not overwrite mode