added some missing trace statements