adding log cleanup