misc debugging magic.