added some trace messages