various windows fixes