bugfix, add windows version check