fixed it up a bit, dunno what it does under linux yet.
more little crap