fixed windows compatibility