added debug info for RPC calls