windows compatibility, ref #2