partial windows compatibility