added portal search functions