add log cutting