xml escape & ctrl-c bugs fixed