working on generic state for searching people