added tex support