tree with continuations