add zTree support and implement partial organization function