gentoo functions