portage functions