trying to get log file to work