thread only for windows at the moments.