remote-chat function added