add tree directive