adding some trace messages to help debug