add timeout for searching