add debug logging to receiver