basic shell for search and retrieve