add how to switch to x-window
tmp