added compatibility mode for Windows 8 and higher