added Windows compatibility