proxy: add a few debug() calls