added initial tern search
advanced search