fixed a bunch of os environment issues...