remove some syslog and fix xml memory leak