modified ts to work with latest ealib changes.