changed server comms to include message passing