adding xml logging