search logout refinement