moved search functions to src dir