fix windows compatability