merged friendsearchservlet stuff