add more debugging when receipt is sent