dix livecd script stuff and clean up code