added windows functionality