read tree stream