email: add debug statements