win detection seems to work now