update os methods for windows