fixed logfile finally