add debug message for packet