add debug info for buffer-size