solve two problems
solve extract log