properly reset log