is this only needed on windows? if so lets put it behind `if WINDOWS` to be explicit