small change to beetree node handling