setup search only once, added missing boolean type