getting tree from path and ref working properly