(gh-472) refactoring method so that is only supports windows and will raise error on other platforms