added autoSearch