update to latest TEA changes