implemented deleting old log files