add debug printf for empty callback