added ability to get plain text for search