added hooks for gentoo template