added windows checking