fixed bug and added xterm defaults