flagged tags not included in search. case insensitive exisiting tag check. minor fixes