add timeout in search_gesture.cpp