BAC-1068: add debug