add logic for start-searcj