tryng to write log files