TreeRewriter from valium