cleaning up logs