add Windows compatibility