adding try for xterm