remove leftover echo statement
improve visible search and thread indexing