add debug support and suspendReceive and improve anonymous