initial code, server resend msg from client