add offset tree and tregex