fixed a bunch of windows issues