only debug when there are messages