turns valium-inject into a tree rewriter