better trace statements for debugging