adding search logging