added a few trace messages