add traces for debug