build the main structure
added the search interface