refactored to be more distro specific.