implemented search, fixed some sanitizers