moved out search stuff