added tex and search support