improving windows compatibility