added the ability to pass a TE