add tree stateful plugin