add #search and driver code