added windows fucntionality