textree and related stuff