added check for xwindows