I'm trying to make boxes around parts of my tree, but I find no command to do so. I have tried the qtree package, which has the !qframesubtree that can do the job, but only for complete subtrees. What I want to do is to draw one box around the upper part of the tree (including the IP) and another box around the rest of the tree (including the VP).
\begin{exe}
\ex \Tree [.IP Spec [.I\1 I [.VP Spec [.V\1 V XP ] ] ] ]
\end{exe}
Any tips on how to do this.
I include a simple drawing of the desired result. 
EDIT: With the comments below I have now solved the problem. This is the code I ended up with:
\documentclass{minimal}
\usepackage{forest}
\forestset{
sn edges/.style={for tree={parent anchor=south, child anchor=north,align=center,base=bottom{}}},
background tree/.style={for tree={text opacity=0.2,draw opacity=0.2,}},
}
\begin{document}
\begin{forest} sn edges,
[IP, tikz={\node [draw, fit=()(Spec)(Ibar)(I)]{};}, s sep=3em,
[{Spec}, name=Spec]
[I',name=Ibar, l sep=2em, s sep=6.5em,
[I, name=I ]
[VP, tikz={\node [draw, inner sep=0.03em, fit=()(!1)(!ll)]{};}
[Spec]
[V',
[V]
[XP]] ]] ]
\end{forest}
\end{document}

