updating module to work with Gentoo