BAC-1083: add debug