handle log file existance