rewrite tree segment to reduce read times.
add user header operation for tree