added object mode for duplex stream call