added optional X11 support