add window manager checks